package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 仓库用户表
 * </p>
 *
 * @author leehao
 * @since 2019-07-01
 */
public class WUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 仓库id,如多个用逗号分隔
     */
    private String wid;

    /**
     * 登录
     */
    private String login;

    /**
     * 密码
     */
    private String passWord;

    /**
     * 名称
     */
    private String name;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 创建时间
     */
    private Date createtime;

    private Integer roleId;

    /**
     * 头像
     */
    private String headUrl;

    /**
     * 1有效 0无效
     */
    private Integer status;

    /**
     * 仓库名称
     */
    @TableField(exist = false)
    private String warehouseName;

    /**
     * 角色名称
     */
    @TableField(exist = false)
    private String roleName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWid() {
        return wid;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }
    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public String toString() {
        return "WUser{" +
        "id=" + id +
        ", wid=" + wid +
        ", login=" + login +
        ", passWord=" + passWord +
        ", name=" + name +
        ", phone=" + phone +
        ", createtime=" + createtime +
        ", roleId=" + roleId +
        ", headUrl=" + headUrl +
        ", status=" + status +
        "}";
    }
}
